{% extends "base.html" %}

{% block main %}
<h3>Welcome home!</h3><br/>
{% if request.user.is_authenticated %}  
<p>hello <span>{{request.user.username}}</span></p>
<a href="account/edit_profile">profile</a>
<a href="account/logout">logout</a>
<a href="forum/add_article">AddArticle</a>
{% else %}
<ul>
    <li><a href="account/register">register</a></li>
    <li><a href="account/login">login</a></li>
    <a href="forum/latest_articles">LatestArticles</a>
    <a href="info/type_list">TypeList</a>
</ul>
{% endif %}
{% endblock %}

